import originJsonp from 'jsonp'
export default function jsonp(url, data, option) {
  return new Promise((resolve,reject)=>{
    originJsonp(url,option,(err,data)=>{
      if(!err){
        resolve(data)  //请求成功
      }else{
        reject(err)  //失败
      }
    })
  })
}